/**
 * 
 */
package com.wolfpire.info.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.wolfpire.system.common.Constants;
import com.wolfpire.system.common.UnCover;

/**
 * 实训条件统计表
 * @author lihd
 *
 */

@Entity
@Table(name = "t_training_count_info")
public class TrainingCountInfo implements Serializable {
	
	private static final long serialVersionUID = 8379020516419527056L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "id", unique = true, nullable = false, length = 16)
	private Long id;//主键Id
	
	@Column(name = "year_", length = 5)
	private Integer year; //年度
	
	@Column(name = "base_num", length = 8)
	private Integer baseNum; //实训基地数量（个）
	
	@Column(name = "built_up_area", length = 16)
	private String builtUpArea;//实训基地建筑面积(平方米)
	
	@Column(name = "equipment_value", length = 16)
	private String equipmentValue; //教仪(实训)设备总值（万元）
	
	@Column(name = "avg_equipment_value", length = 16)
	private String avgEquipmentValue;//生均教仪(实训)设备值(元)
	
	@Column(name = "new_equipment_value", length = 16)
	private String newEquipmentValue;//新增教仪(实训)设备值（万元）
	
	@Column(name = "equipment_count", length = 8)
	private Integer equipmentCount;//教仪(实训)设备总数（台/套）

	@Column(name = "large_equipment_count", length = 8)
	private Integer largeEquipmentCount;//大型教仪(实训)设备数（台/套）
	
	@Column(name = "consumables_value", length = 16)
	private String consumablesValue; //实训耗材（万元）

	@Column(name = "central_base_count", length = 8)
	private Integer centralBaseCount; //央财支持的实训基地（个）
	
	@Column(name = "province_base_count", length = 8)
	private Integer provinceBaseCount;//省财支持的实训基地（个）
	
	@Column(name = "product_base_count", length = 8)
	private Integer productBaseCount; //校内生产性实训基地（个）
	
	@Column(name = "outside_base_count", length = 8)
	private Integer outsideBaseCount; //校外实训基地（个）
	
	@Column(name = "create_user_id", length = 16)
	private Long createUserId; //创建用户Id
	
	@Column(name = "create_user_name", length = 50)
	private String createUserName; //创建用户名称
	
	@UnCover
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "create_time")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")  
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") 
	private Date createTime = new Date();//创建时间
	
	@Column(name = "del_flag", length = 1)
	private Integer delFlag = Constants.NORMAL_FLAG;

	public TrainingCountInfo() {
		super();
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Integer getYear() {
		return year;
	}

	public void setYear(Integer year) {
		this.year = year;
	}

	public Integer getBaseNum() {
		return baseNum;
	}

	public void setBaseNum(Integer baseNum) {
		this.baseNum = baseNum;
	}

	public String getBuiltUpArea() {
		return builtUpArea;
	}

	public void setBuiltUpArea(String builtUpArea) {
		this.builtUpArea = builtUpArea;
	}

	public String getEquipmentValue() {
		return equipmentValue;
	}

	public void setEquipmentValue(String equipmentValue) {
		this.equipmentValue = equipmentValue;
	}

	public String getAvgEquipmentValue() {
		return avgEquipmentValue;
	}

	public void setAvgEquipmentValue(String avgEquipmentValue) {
		this.avgEquipmentValue = avgEquipmentValue;
	}

	public String getNewEquipmentValue() {
		return newEquipmentValue;
	}

	public void setNewEquipmentValue(String newEquipmentValue) {
		this.newEquipmentValue = newEquipmentValue;
	}

	public Integer getEquipmentCount() {
		return equipmentCount;
	}

	public void setEquipmentCount(Integer equipmentCount) {
		this.equipmentCount = equipmentCount;
	}

	public Integer getLargeEquipmentCount() {
		return largeEquipmentCount;
	}

	public void setLargeEquipmentCount(Integer largeEquipmentCount) {
		this.largeEquipmentCount = largeEquipmentCount;
	}

	public String getConsumablesValue() {
		return consumablesValue;
	}

	public void setConsumablesValue(String consumablesValue) {
		this.consumablesValue = consumablesValue;
	}

	public Integer getCentralBaseCount() {
		return centralBaseCount;
	}

	public void setCentralBaseCount(Integer centralBaseCount) {
		this.centralBaseCount = centralBaseCount;
	}

	public Integer getProvinceBaseCount() {
		return provinceBaseCount;
	}

	public void setProvinceBaseCount(Integer provinceBaseCount) {
		this.provinceBaseCount = provinceBaseCount;
	}

	public Integer getProductBaseCount() {
		return productBaseCount;
	}

	public void setProductBaseCount(Integer productBaseCount) {
		this.productBaseCount = productBaseCount;
	}

	public Integer getOutsideBaseCount() {
		return outsideBaseCount;
	}

	public void setOutsideBaseCount(Integer outsideBaseCount) {
		this.outsideBaseCount = outsideBaseCount;
	}

	public Long getCreateUserId() {
		return createUserId;
	}

	public void setCreateUserId(Long createUserId) {
		this.createUserId = createUserId;
	}

	public String getCreateUserName() {
		return createUserName;
	}

	public void setCreateUserName(String createUserName) {
		this.createUserName = createUserName;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Integer getDelFlag() {
		return delFlag;
	}

	public void setDelFlag(Integer delFlag) {
		this.delFlag = delFlag;
	}
	
}
